package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class ExternalBodyReference implements RoutineBody {

    private int beginIndex;
    private int endIndex;
    private ExternalRoutineName externalRoutineName;
    private ParameterStyleClause parameterStyleClause;
    private TransformGroupSpecification transformGroupSpecification;
    private ExternalSecurityClause externalSecurityClause;

    public ExternalBodyReference(int beginIndex,
                                 int endIndex,
                                 ExternalRoutineName externalRoutineName,
                                 ParameterStyleClause parameterStyleClause,
                                 TransformGroupSpecification transformGroupSpecification,
                                 ExternalSecurityClause externalSecurityClause) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.externalRoutineName = externalRoutineName;
        this.parameterStyleClause = parameterStyleClause;
        this.transformGroupSpecification = transformGroupSpecification;
        this.externalSecurityClause = externalSecurityClause;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public ExternalRoutineName getExternalRoutineName() {
        return externalRoutineName;
    }

    public ParameterStyleClause getParameterStyleClause() {
        return parameterStyleClause;
    }

    public TransformGroupSpecification getTransformGroupSpecification() {
        return transformGroupSpecification;
    }

    public ExternalSecurityClause getExternalSecurityClause() {
        return externalSecurityClause;
    }

}
